import QtQuick          2.3
import QtQuick.Controls 1.2
import QtQuick.Dialogs  1.2
import QtQuick.Layouts      1.2

import QGroundControl               1.0
import QGroundControl.Palette       1.0
import QGroundControl.FactSystem    1.0
import QGroundControl.FactControls  1.0
import QGroundControl.Controls      1.0
import QGroundControl.ScreenTools   1.0
import QGroundControl.Controllers   1.0
import SimpleTest 1.0
AnalyzePage {
    id:              mavlinkConsolePage
    pageComponent:   pageComponent
    pageName:        qsTr("SimpleTest")

    SimpleTest {
       id: _SimpleTest
    }

    Connections
    {
        target: _SimpleTest
        function on_testChanged()
        {
        _SimpleTest.test2="c"
    }
    }

    TextEdit {
        id: textEdit
        x: 285
        y: 189
        width: 81
        height: 25
        color: "#f5f3f3"
        text: qsTr(_SimpleTest.test1)
        font.family: "Times New Roman"
        font.pixelSize: 12
    }
    TextEdit {
        id: textEdit1
        x: 285
        y: 229
        width: 81
        height: 25
        color: "#f5f3f3"
        text: qsTr(_SimpleTest.test2)
        font.family: "Times New Roman"
        font.pixelSize: 12
    }
    Button {
        id: button
        x: 372
        y: 189
        text: qsTr("发送")
        onClicked: {
       _SimpleTest.test1="C"
        }
    }

}

